package usercenter;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import struts.action.Action;
import struts.form.ActionForm;

public class UserAction implements Action {

	@Override
	public String execute(HttpServletRequest request, ActionForm form,
			Map<String, String> actionForward) {
		UserForm userForm = (UserForm) form;
		String url = "";
		if(userForm.getName().equals(userForm.getPassword())){
			url = actionForward.get("success");
		}else {
			url = actionForward.get("faild");
		}
		return url;
	}

	

}
